package com.example.demo99.Mapper;

import com.example.demo99.Entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    User getUserById(Integer id);

    void updatePoints(@Param("id") Integer id,
                      @Param("points") Integer points,
                      @Param("totalPoints") Integer totalPoints);
    void updateLevel(@Param("id") Integer id, @Param("level") String level);
}
